<link type="text/css" href="/admins/js/jquery/css/ui-lightness/transa.css" rel="stylesheet" />
<script type="text/javascript" src="/admins/js/jquery/jquery.ui.datepicker-zh-CN.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-view.js"></script>
<script type="text/javascript" src="/admins/js/pagerView/pager-calendar.js"></script>
<script type="text/javascript" src="/admins/js/My97DatePicker/WdatePicker.js"></script>
<div style=" border:1px solid #DDDDDD; padding:2px; margin:2px;line-height: 36px;" id='sel'> 
      <form action="/admini/packageno/relist/"  method="get" style="margin:0px" id="form1">
            <input type="hidden" id="starttime" name="starttime" value="<?php echo $this->starttime?$this->starttime:"";?>"/>
            <label for="quick">&nbsp;&nbsp;快速搜索：</label><input type="text" id="quick" name="quick" value="<?php echo $this->quick; ?>" />
            <div class="time">
                        <!--点击后悬停样式为：<div class="timeselect t_on">-->
                        <div class="timeselect"  id="stime">
                            <span id="stimeval"><?php echo $this->starttime?$this->starttime:date("Y-m-d",mktime(0,0,0,date("m"),date("d"),date("Y")));?></span><i></i>
                        </div>
                        <div class="timeslelctbox">
                            <!---时间插件放此DIV-->
                        </div>
            </div>
            <input type="submit" id="queryButton" name="queryButton" class="button" value="查询"/>
      </form>
</div>
<div class="dataTable">
      <table>         
           
            <tr>
                  <th class="w3" width="25%" align="center">扫描日期</th>          
                  <th class="w4" width="25%" align="center">公司名称</th>
                  <th class="w2" width="25%" align="center">扫描条码个数</th>
                  <th class="w4" width="25%" align="center">操作人</th>
            </tr>  

            <?php
            if ($this->packagelist) {
                  foreach ($this->packagelist as $Item) {
                        ?>
                        <tr>                             
                              <td class="w4" align="center"><a href="/admini/packageno/detail/id/<?php echo $Item->id ?>"><?php echo $Item->dateCreated; ?></a></td>
                              <td class="w3" align="center"><a href="/admini/packageno/list/count/<?php echo $Item->id ?>"><?php echo $Item->ShipType->name; ?></a></td>
                              <td class="w2" align="center"><?php echo $Item->PackageNo; ?></a></td>
                              <td class="w4" align="center"><?php echo $Item->operator; ?></td>
                        </tr>
                        <?php
                  }
            }
            ?>
      </table>
</div>                
<div class="toolbar">
      <?php echo $this->partial('paging.phtml', array("pages" => $this->packageall, "pamas" => "quick=" . $this->quick)); ?>
</div>
<?php
if (isset($this->message) && $this->message != "") {
      echo '<script language="javascript" type="text/javascript">alert("' . $this->message . '")</script>';
}
?>
<script type="text/javascript">
            $(".timezdy").click(function(){
                $(".timezdy .timeselect2").attr("class","timeselect2 timeon");
                $(".timeslelct_xl").attr("style","display:block;");
            });
            $(".timezdy").mouseleave(function(){
               $(".timeselect2").attr("class","timeselect2");
               $(".timeslelct_xl").attr("style","display:none;");
            });
            $("#stime").click(function(){
                $(this).attr("class","timeselect t_on");
                WdatePicker({el:'stimeval',vel:'starttime',onpicked:function(){
                        $("#stime,#etime").attr("class","timeselect");
                        $(".soubox #timescope").val("");
                }});
            });
</script>